/**  
 * All rights Reserved, Designed By www.woniuxy.com
 * @Title:  Account.java   
 * @Package com.woniu.domain   
 * @Description:    Description  
 * @author: 蜗牛学院  
 * @date:   2019年7月30日 下午2:53:22
 * @user:   Administrator  
 * @version V1.0 
 * @Copyright: 2019 www.woniuxy.com Inc. All rights reserved. 
 * 注意：本内容仅限于成都蜗牛创想科技有限公司，禁止外泄以及用于其他的商业目
 */ 
package com.woniu.service;

import java.sql.SQLException;
import java.util.List;

import com.woniu.domain.User;
import com.woniu.domain.UserAddress;



/**
 * @author Administrator
 *
 */

public interface UserService {
		User UserLogin(String uName, String uPwd) throws SQLException;

		/**
		 * @return
		 */
		boolean checkName(String uName) throws SQLException;

		/**
		 * @param user
		 * @return
		 */
		boolean saveUser(User user) throws SQLException;

		/**
		 * @return
		 */
		List<UserAddress> findUserAddress(User user) throws SQLException;

		/**
		 * @return
		 */
		User findAllUser() throws SQLException;

		/**
		 * @param uName
		 * @param phoneNum
		 * @param province
		 * @param city
		 * @param county
		 * @param street
		 * @param detail
		 */
		void addAddress(String uName, String phoneNum, String province, String city, String county, String street,
				String detail,User user) throws SQLException;
}

